/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023.
 * Description: skip ro mode when mark blocks bad failed
 * Author: Pang LiYuan
 * Create: 2023-09-13
 */
#ifdef CONFIG_RTOS_UBI_SKIP_RO
/* UBI module parameter to enable skip RO mode when mark blocks bad failed */
static bool is_skip_ro;

module_param(is_skip_ro, bool, 0644);
MODULE_PARM_DESC(is_skip_ro, "Set this parameter to enable skip RO mode when mark blocks bad failed.");

static inline void ubi_set_skip_ro(struct ubi_device *ubi)
{
	ubi->is_skip_ro = is_skip_ro;
	ubi_msg(ubi, "set is_skip_ro to %d", ubi->is_skip_ro);
}
#else
static inline void ubi_set_skip_ro(struct ubi_device *ubi)
{
}
#endif
